<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="../images/favicon.ico">
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>


<!-- 文件上传需要的样式 -->

<link rel="stylesheet" type="text/css"
	href="${path }/resource/plugin/kindeditor/themes/default/default.css" />
<link rel="stylesheet" type="text/css"
	href="${path }/resource/plugin/kindeditor/plugins/code/prettify.css" />
<script type="text/javascript"
	src="${path }/resource/plugin/kindeditor/kindeditor.js"></script>
<script type="text/javascript"
	src="${path }/resource/plugin/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript"
	src="${path }/resource/plugin/kindeditor/plugins/code/prettify.js"></script>

<title></title>
</head>


<div class="ibox-content">
	<form class="form-horizontal" id="dataform"
		onsubmit="javascripr:return false;">
			<input type="hidden" id="id" value="${obj.id}">
		<div class="form-group">
			 <div class="col-sm-12" align="center">
				<h2>${obj.report.title}</h2><h4>${obj.report.type}</h4>
			</div>
			<div class="col-sm-12">
				${obj.report.content}
			</div>
		</div>
			
			
		<%-- <input type="hidden" name="tokenUrl" value="${tokenUrl}"> <input
			type="hidden" name="token" value="${token}">
		<c:if test="${obj ne null }">
			<input type="hidden" name="id" value="${obj.id }">
		</c:if> 

		
		<input type="hidden" name="id" value="${obj.id}" >
		<input type="hidden" name="projId" value="${projId}" >
		
		<div class="form-group">
			<label class="col-sm-2 control-label">报告标题</label>
			<div class="col-sm-10">
			<input type="text" dataType="*1-20" class="form-control"
					name="title" value="${obj.title}" nullmsg="标题不能为空">
					<div class="Validform_checktip"></div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">报告类型</label>
			<div class="col-sm-10">
			<select style="width: 100%" name="type">
			<c:if test="${obj.type eq 项目启动报告}">selected="selected"</c:if>
				<option value="项目启动报告" <c:if test="${obj.type eq 项目启动报告}">selected="selected"</c:if>>&nbsp;&nbsp;&nbsp;项目启动报告&nbsp;&nbsp;&nbsp;</option>
				<option value="项目中期报告" <c:if test="${obj.type eq 项目启动报告}">selected="selected"</c:if>>&nbsp;&nbsp;&nbsp;项目中期报告&nbsp;&nbsp;&nbsp;</option>
				<option value="项目首次交付报告" <c:if test="${obj.type eq 项目启动报告}">selected="selected"</c:if>>&nbsp;&nbsp;&nbsp;项目首次交付报告&nbsp;&nbsp;&nbsp;</option>
				<option value="项目客户验收报告" <c:if test="${obj.type eq 项目启动报告}">selected="selected"</c:if>>&nbsp;&nbsp;&nbsp;项目客户验收报告&nbsp;&nbsp;&nbsp;</option>
				<option value="项目总结报告" <c:if test="${obj.type eq 项目启动报告}">selected="selected"</c:if>>&nbsp;&nbsp;&nbsp;项目总结报告&nbsp;&nbsp;&nbsp;</option>
			</select>
			<!-- <input type="text" dataType="*1-20" class="form-control"
					name="projName" value="">
					<div class="Validform_checktip"></div>-->
			</div> 
		</div>
		<input type="hidden" name="receiveId" id="receiveId" > 
		<c:if test="${obj.receiveId eq null}">
			<div class="form-group">
				<label class="col-sm-2 control-label">接收人:</label>
				<div class="col-sm-8" id="userName">
				<!-- 	<input type="text" dataType="*1-20" class="form-control"
						name="projName" value="">
					<div class="Validform_checktip"></div> -->
				</div>
				<div class="col-sm-2"></div>
			</div>
		</c:if>
		

		<div class="form-group">
			<label class="col-sm-2 control-label">报告内容</label>
			<div class="col-sm-8">
			<textarea name="content" id="artcontent1" >${obj.content}</textarea>
			</div>
			<div class="col-sm-2"></div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">附件</label>
			<div class="col-sm-10">
				<input type="file"  class="form-control"
					name="fileName" value="" >
				<div class="Validform_checktip"></div>
			</div>
		</div> --%>
		
		
		<div class="form-group ">
			<div class="col-sm-12 text-center" >
				<!-- <a href="javascript:;" onclick="myForm.submit()"
					class="btn btn-success radius">保存</a>&nbsp;&nbsp;&nbsp;&nbsp; -->
				<button onclick="MTools.closeForm()" class="btn btn-danger radius">关闭</button>
			</div>
		</div>
	</form>
</div>
</body>
<script type="text/javascript">
/* 	var editor;
	 var myForm;
	$(function(){
		MUI.createEdit("content", '100%', '500px', 'editor');
		
		 myForm=MForm.initForm({
			invokeUrl:"${path}/admin/report/addOrModify",
			beforeSubmit:function(){
				editor.sync();
			},
			afterSubmit:function(){
				parent.myGrid.serchData();
			},
		});
	})
 */
	$(function(){
		$.AjaxProxy({a : false,c : false,p:{id:$("#id").val()}}).invoke("${path}/admin/sendReport/update",function(loj){
			
		})
	})

</script>
</html>